package com.sx.ems.service;

import com.sx.ems.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sx.ems.utils.PageUtils;

import java.util.List;
import java.util.Map;

public interface SysUserService extends IService<SysUser> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询用户的所有权限
     * @param userId  用户ID
     */
    List<String> queryAllPerms(Long userId);

    /**
     * 查询用户的所有菜单ID
     */
    List<Long> queryAllMenuId(Long userId);


    SysUser getByUsername(String username);




}
